package com.itheima.exerciseTest.test01_09;

public class Test1 {
    public static void main(String[] args) {
        Cat c1 = new Cat();
        Cat c2 = new Cat(10);
    }
}
class Cat{
    public Cat(){
        System.out.println("我是无参构造方法\n");
    }
    public Cat(int a){
        System.out.println("我是带参构造方法----\n");
    }
    {
        System.out.println("我是构造代码块");
    }

}
